//
//  NYSTipsView.h
//  NtoccDriverNew
//
//  Created by niyongsheng on 2021/8/16.
//  Copyright © 2021 Arpa. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, NYSTipsInDirection) {
    NYSTipsInDirectionUp,     // 顶部进入
    NYSTipsInDirectionDown,   // 底部进入
    NYSTipsInDirectionLeft,   // 左侧进入
    NYSTipsInDirectionRight   // 右侧进入
};

@interface NYSTipsView : UIView

+ (void)showTipsWithContent:(NSString *)content;

+ (void)showTipsWithTitle:(NSString *)title
                  content:(NSString *)content
              actionTitle:(NSString *)actionTitle
   infoButtonClickedBlock:(void(^)(void))actionButtonClickedBlock;

+ (void)showTipsWithTitle:(NSString *)title
                  content:(NSString *)content
              actionTitle:(NSString *)actionTitle
    infoButtonClickedBlock:(void(^)(void))actionButtonClickedBlock
  closeButtonClickedBlock:(void(^)(void))closeButtonClickedBlock;

+ (void)showTipsWithTitle:(NSString *)title
                  content:(NSString *)content
              actionTitle:(NSString *)actionTitle
                direction:(NYSTipsInDirection)direction
         offsetFromCenter:(UIOffset)offsetFromCenter
                 duration:(float)dutation
                   onView:(UIView *)view
 actionButtonClickedBlock:(void(^)(void))actionButtonClickedBlock
  closeButtonClickedBlock:(void(^)(void))closeButtonClickedBlock;

+ (void)showTipsWithTitle:(NSString *)title
                  content:(NSString *)content
              actionTitle:(NSString *)actionTitle
                direction:(NYSTipsInDirection)direction
         offsetFromCenter:(UIOffset)offsetFromCenter
                 duration:(float)dutation
                   onView:(UIView *)view
                      tag:(NSInteger)tag
 actionButtonClickedBlock:(void(^)(void))actionButtonClickedBlock
  closeButtonClickedBlock:(void(^)(void))closeButtonClickedBlock;
@end

NS_ASSUME_NONNULL_END
